package com.cheng.im.service.group.model.req;

import com.cheng.im.service.common.model.RequestBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author: Chackylee
 * @description:
 **/
@Data
@ApiModel("IM禁言群成员请求类")
public class SpeaMemberReq extends RequestBase {

    @NotBlank(message = "群id不能为空")
    @ApiModelProperty("群ID")
    private String groupId;

    @NotBlank(message = "memberId不能为空")
    @ApiModelProperty("群成员用户ID")
    private String memberId;

    //禁言时间，单位毫秒
    @NotNull(message = "禁言时间不能为空")
    @ApiModelProperty("禁言时间")
    private Long speakDate;
}
